package khs.java_application_path.main.java;

import java.io.File;
import java.io.IOException;

import org.apache.commons.io.FilenameUtils;

/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args ) throws IOException
    {
        String work_path = System.getProperty("user.dir");
        String application_path = new File(App.class.getProtectionDomain().getCodeSource().getLocation().getPath()).getAbsolutePath();
        String path = FilenameUtils.getFullPath(application_path);
        
        System.out.println("=====> application path");
        System.out.println(application_path);
        
        System.out.println("=====> common-io path");
        System.out.println(path);
        
        System.out.println("=====> work path");
        System.out.println(work_path);
    }
}
